package cloud.tianai.ram.policy.demo;

import cloud.tianai.ram.policy.spring.exception.RamHitException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class DemoExceptionAdvice {


    @ExceptionHandler(value = RamHitException.class)
    public String ramHitException(RamHitException ex) {
        return "拦截===>" + ex.getMatch();
    }
}
